package com.wanmei.service;

import com.wanmei.exception.WanmeiException;
import com.wanmei.pojo.Category;
import com.wanmei.pojo.UITreeView;

import java.util.List;

public interface CategoryService {
     List<Category> getCategoryByCid(Integer cid);

    List<UITreeView> getParentNode();
    void getChildByParentsId(UITreeView treeView, List<Category> listCategory);
    int insert(Category category);
    int deleteCategoryByCid(int cid);
    List<Category> getAllChild(int cid);
    Category selectByPrimaryKey(Integer cid);
    int countCname(String cname);
    int saveByPrimaryKeySelective(Category record) throws WanmeiException;
}
